<template>
  <view class="page">

    <!-- 头部 -->
    <u-sticky offset-top="0" :bgColor="bgColor">
      <u-navbar leftText="更多服务" title=" " @rightClick="rightClick" :autoBack="true" placeholder
                :safeAreaInsetTop="true" :bgColor="bgColor"></u-navbar>
    </u-sticky>

    <!-- 主内容 -->
    <view class="page-content">
      <view class="lst-hg1">
        <view class="item" @click="go('/pages/walletRecharge/walletRecharge')">
          <image :src="imageUrl + 'hg-icon1.png'" mode="widthFix" class="icon"></image>
          <view class="tit">钱包充值</view>
        </view>
        <view class="item" @click="go('/pages/activation/activation')">
          <image :src="imageUrl + 'a9.png'" mode="widthFix" class="icon"></image>
          <view class="tit">无感开通</view>
        </view>
        <!--<view class="item" @click="go('/pages/carMarket/carMarket')">
          <image :src="imageUrl + 'hg-icon3.png'" mode="widthFix" class="icon"></image>
          <view class="tit">车后市场</view>
        </view>-->
        <view class="item" @click="go('/pages/contactcustomer/textinput')">
          <image :src="imageUrl + 'a5.png'" mode="widthFix" class="icon"></image>
          <view class="tit">联系客服</view>
        </view>
        <view class="item" @click="go('/pages/pointsMall/pointsMall')">
          <image :src="imageUrl + 'hg-icon3.png'" mode="widthFix" class="icon"></image>
          <view class="tit">积分商城</view>
        </view>
      </view>
    </view>

  </view>
</template>

<script>
export default {
  data() {
    return {
      // 头部背景色
      bgColor: 'transparent',

    }
  },
  onLoad() {

  },
  methods: {
    // 头部滚动
    onPageScroll(res) {
      if (res.scrollTop >= 60) {
        this.bgColor = '#ffffff'
      } else {
        this.bgColor = 'transparent'
      }
    },
    go(url) {
      uni.navigateTo({
        url: url
      })
    }
  }
}
</script>

<style lang="scss">

page {
  padding-bottom: calc(constant(safe-area-inset-bottom) + 20rpx);
  padding-bottom: calc(env(safe-area-inset-bottom) + 20rpx);
  background-color: #F4FAF7;
}

</style>
